import request from '@/config/axios'


export interface MaterialVO {

}


export const productUnitApi = {
  // 产品新增
  create: async (data: data) => {
    return await request.post({ url: `/erp/product-unit/create`, data })
  },
 // 产品列表
 pageList: async (params: any) => {
  return await request.get({ url: `/erp/product-unit/page`, params })
},
   // 删除产品列表
   delete: async (data: any) => {
    return await request.delete({ url: `/erp/product-unit/delete?id=`+data, })
  },
   // 获取产品
   details: async (data: any) => {
    return await request.get({ url: `/erp/product-unit/get?id=`+data, })
  },
   // 修改产品
   update: async (data: any) => {
    return await request.put({ url: `/erp/product-unit/update`,data, })
  },
  
}
